import Layout from '@/layout'

export default {
  path: '/content',
  component: Layout,
  name: 'ydd_content',
  meta: { title: '内容管理', icon: 'el-icon-setting' },
  children: [
    {
      path: '/content_cate',
      name: 'ydd_cate',
      component: () => import ('@/views/content/cate'),
      meta: { title: '分类管理', icon: 'el-icon-menu' }
    },
    {
      path: '/content_tag',
      name: 'ydd_tag',
      component: () => import ('@/views/content/tag'),
      meta: {
        title: '标签管理',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/content_article',
      name: 'ydd_article',
      component: () => import ('@/views/content/article'),
      meta: {
        title: '文章管理',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/content_article/add',
      name: 'content_article_add',
      component: () => import ('@/views/content/article/info'),
      hidden: true,
      meta: {
        title: '添加文章',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/content_article/edit/:id',
      name: 'content_article_edit',
      component: () => import ('@/views/content/article/info'),
      hidden: true,
      meta: {
        title: '修改文章',
        icon: 'el-icon-place'
      }
    }
  ]
}
